/*
 *  Copyright 2010 UPF Telecos 4th group G.
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */

package edu.upf.messages;

import java.io.Serializable;

/**
 * Class that implements a message payload for sending a search profile query
 * @author netjois
 */
public class SearchProfile implements Serializable{

    private String query;
    private String queryType;
    private String subtype;

    /**
     * Creates a new SearchProfile message with the type and the query.
     * @param queryType
     * @param subtype
     * @param query
     */
    public SearchProfile(String queryType, String subtype, String query){
        this.query=query;
        this.queryType=queryType;
        this.subtype=subtype;
    }

    /**
     * Sets the query type of the search profile
     * @param queryType
     */
    public void setQueryType(String queryType){
        this.queryType=queryType;
    }

    /**
     * Gets the query type of the search profile
     * @return
     */
    public String getQueryType(){
        return queryType;
    }

    /**
     * Sets the query of the search profile
     * @param query
     */
    public void setQuery(String query){
        this.query=query;
    }

    /**
     * Gets the query of the search profile
     * @return
     */
    public String getQuery(){
        return query;
    }

    /**
     * Sets the media type of he search profile
     * @param subtype
     */
    public void setSubtype(String subtype){
        this.subtype=subtype;
    }

    /**
     * Gets the media type of the search profile
     * @return
     */
    public String getSubtype(){
        return subtype;
    }
}
